package com.wuye.model;

import java.io.Serializable;
import javax.persistence.*;

import com.wuye.web.MenuType;
import org.apache.commons.lang3.builder.*;

@Entity
@Table(name="wuye_menu")
public class Menu implements Serializable{
	public String toString() {
		try {
			return ReflectionToStringBuilder.toString(this,ToStringStyle.MULTI_LINE_STYLE);
		} catch (Exception e) {
			return e.getMessage();
		}
	}
	@Id
	@Column(name = "menu_id")
	private String menuId;
	public String getMenuId(){
		return this.menuId;
	}
	public void setMenuId(String arg){
		this.menuId=arg;
	}

	@Column(name = "image_file")
	private String imageFile;
	public String getImageFile(){
		return this.imageFile;
	}
	public void setImageFile(String arg){
		this.imageFile=arg;
	}

	@Column(name = "item_name")
	private String itemName;
	public String getItemName(){
		return this.itemName;
	}
	public void setItemName(String arg){
		this.itemName=arg;
	}

	@Column(name = "item_description")
	private String itemDescription;
	public String getItemDescription(){
		return this.itemDescription;
	}
	public void setItemDescription(String arg){
		this.itemDescription=arg;
	}

	@Column(name = "item_type")
	private String itemType;
	public String getItemType(){
		return this.itemType;
	}
	public void setItemType(String arg){
		this.itemType=arg;
	}

	@Column(name = "item_unit")
	private String itemUnit;
	public String getItemUnit(){
		return this.itemUnit;
	}
	public void setItemUnit(String arg){
		this.itemUnit=arg;
	}

	@Column(name = "item_price")
	private Float itemPrice;
	public Float getItemPrice(){
		return this.itemPrice;
	}
	public void setItemPrice(Float arg){
		this.itemPrice=arg;
	}

	public Menu(String menuId, String imageFile, String itemName, String itemDescription, String itemUnit, String itemType, Float itemPrice) {
		this.menuId = menuId;
		this.imageFile = imageFile;
		this.itemName = itemName;
		this.itemDescription = itemDescription;
		this.itemUnit = itemUnit;
		this.itemType = itemType;
		this.itemPrice = itemPrice;
	}

	public Menu (){}
}